import led from "./led";
import utils from "./utils";
import * as iconv from "iconv-lite";

// 正常的
// a5a5a5a5a5a5a5a5feff008000000000000063023000a306010000000127000000000000180020000000000a0000000002020300020a0c000000
// c9bd cef7 cdf2 c8db cdf2 c8db dc905a
// 不正常的
// a5a5a5a5a5a5a5a5feff0080000000000000fe023000a306010000000127000000000000c00020000000000a0000000001010300020a0c000000
// c9bd cef7 cdf2 e946cdf2e94660b75a
// c9bd cef7 cdf2 e946cdf2e946
// c9bd cef7 山西
// cdf2 e946 万镕
let a = led.get("山西万镕万镕", 1);
a = iconv.encode("万镕", 'GB2312')
console.log(utils.Bytes2Str(a));